package homework.test6;

public class MyThread6 extends Thread{
    @Override
    public void run() {
        int sum = 0;
        for (int i = 1; i <= 500; i++) {
            sum += i;
        }
        System.out.println(sum);
    }
}
